package com.ruoyi.passengers.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 里程信息对象 mileageInfo
 * 
 * @author ruoyi
 * @date 2025-08-17
 */
public class MileageInformation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 里程信息ID */
    private Long id;

    /** 关联的乘客ID */
    @Excel(name = "关联的乘客ID")
    private Long passengerId;

    /** 总出行里程（单位：公里） */
    @Excel(name = "总出行里程", readConverterExp = "单=位：公里")
    private BigDecimal totalTravelMileage;

    /** 本月出行里程（单位：公里） */
    @Excel(name = "本月出行里程", readConverterExp = "单=位：公里")
    private BigDecimal currentMonthMileage;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setPassengerId(Long passengerId) 
    {
        this.passengerId = passengerId;
    }

    public Long getPassengerId() 
    {
        return passengerId;
    }

    public void setTotalTravelMileage(BigDecimal totalTravelMileage) 
    {
        this.totalTravelMileage = totalTravelMileage;
    }

    public BigDecimal getTotalTravelMileage() 
    {
        return totalTravelMileage;
    }

    public void setCurrentMonthMileage(BigDecimal currentMonthMileage) 
    {
        this.currentMonthMileage = currentMonthMileage;
    }

    public BigDecimal getCurrentMonthMileage() 
    {
        return currentMonthMileage;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("passengerId", getPassengerId())
            .append("totalTravelMileage", getTotalTravelMileage())
            .append("currentMonthMileage", getCurrentMonthMileage())
            .toString();
    }
}
